.page-main{
  text-align: center;
}
#input_text{
  padding: 8px;
  width: 400px;
  height: 100px;
  border: 1px solid #ddd;
  outline: none;
  font-size: 13px;
  line-height: 1.5;
}
button{
  margin-top: 10px;
  width: 100px;
  height: 36px;
  background-color: #187cff;
  border: none;
  border-radius: 3px;
  outline: none;
  color: #fff;
  font-size: 14px;
}
body {
  background: #f9f9f9;
  margin: 0;
  /* 替换为您想要的背景颜色或图片 */
}

.chat-bot {
  display: flex;
  flex-direction: column;
  width: 100vh;
  height: 100vh;
  /*max-width: 800px;*/
  margin: 0 auto;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  font-family: "Roboto", sans-serif;
  background: #f5f5f5;
}

.chat-bot-header {
  background: linear-gradient(to right, #1791ee, #9fdbf1);
  color: white;
  text-align: center;
  padding: 15px;
  height: 10vh;
  font-size: 24px;
  font-weight: 500;
}

.chat-bot-messages {
  flex: 1;
  padding: 20px;
  height: 80vh;
  min-height: 600px;
  overflow-y: auto;
}

.userName {
  margin: 0 10px;
}

.message-wrapper {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
  border-radius: 20px;
}

.message-wrapper.user {
  justify-content: flex-end;
  border-radius: 20px;
}

.message-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #ccc;
  margin-right: 10px;
  margin-bottom: 10px;
  /* 添加这一行 */
  order: -1;
  /* 添加这一行 */
  text-align: right;
}

.message-avatar.user {
  background-color: transparent;
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-right: 0;
  align-items: center;
}

.message-avatar.bot {
  background-color: transparent;
  display: flex;
  justify-content: flex-start;
  width: 100%;
  margin-right: 0;
  align-items: center;
}

.message-avatar-inner.user {
  /*background-image: url("./qwen.png");*/
  background-size: cover;
  background-position: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.message-avatar-inner.bot {
  /*background-image: url("./qwen.png");*/
  background-size: cover;
  background-position: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.message {
  padding: 10px 20px;
  border-radius: 15px;
  font-size: 16px;
  background-color: #d9edf7;
  order: 1;
  /* 添加这一行 */
}

.bot {
  background-color: #e9eff5;
  /* 添加这一行 */
}

.user {
  background-color: #d9edf7;
  color: #111111;
  order: 1;
  /* 添加这一行 */
}

.chat-bot-input {
  display: flex;
  align-items: center;
  border-top: 1px solid #ccc;
  padding: 10px;
  background-color: #fff;
  height: 10vh;
}

.chat-bot-input input {
  flex: 1;
  padding: 10px 15px;
  border: none;
  font-size: 16px;
  outline: none;
}

.chat-bot-input button {
  padding: 10px 20px;
  background-color: #007bff;
  border: none;
  border-radius: 50px;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

.chat-bot-input button:hover {
  background-color: #0056b3;
}

@media (max-width: 768px) {
  .chat-bot {
    margin: 20px;
  }

  .chat-bot-header {
    font-size: 20px;
  }

  .message {
    font-size: 14px;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-spinner {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid #d9edf7;
  border-top-color: transparent;
  animation: spin 1s infinite linear;
}